package sun.cn.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import sun.cn.pojo.CommonResult;
import sun.cn.pojo.vo.StorageVo;

/**
 * @author SunJiaFan
 * @version 1.0
 * @date 2022/8/21 21:20
 */
@FeignClient("seata-account-service")
@RequestMapping("/t-account")
@RestController
public interface AccountService {
    @PostMapping("reduceInventory")
    public CommonResult result(@RequestBody StorageVo storageVo);
}
